﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <SolidColorBrush x:Key="LightColor" Color="#FF8ACA06" />
    <SolidColorBrush x:Key="BgLightColor" Color="#5D8ACA06" />
    
    <!--<Style x:Key="EditWindowTemplate" TargetType="{x:Type Window}">
        <Setter Property="Padding" Value="5" />
        <Setter Property="WindowStyle" Value="None" />
        <Setter Property="SnapsToDevicePixels" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Window}">
                    <Grid Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="35" />
                            <ColumnDefinition Width="2" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Border Name="CaptionBorder" Grid.Column="0" Grid.RowSpan="3" HorizontalAlignment="Left" Margin="5,5,0,5" Width="30" CornerRadius="4"
                                BorderThickness="1" 
                                BorderBrush="{StaticResource LightColor}" 
                                Background="{StaticResource BgLightColor}">
                            MouseDown="CaptionBorder_MouseDown"
                            <Border.Style>
                                <Style TargetType="{x:Type Border}">
                                    <EventSetter Event="MouseDown" Handler="CaptionBorder_MouseDown" />
                                </Style>
                            </Border.Style>
                            <Grid>
                                <StackPanel Orientation="Vertical" FlowDirection="LeftToRight" VerticalAlignment="Top">
                                    <Button Width="20" Height="20" Margin="0,5,0,0">
                                        <Button.Style>
                                            <Style TargetType="{x:Type Button}">
                                                <Setter Property="Template">
                                                    <Setter.Value>
                                                        <ControlTemplate TargetType="{x:Type Button}">
                                                            <Rectangle Fill="Beige" Stroke="{StaticResource LightColor}" Width="10" Height="10" ContextMenu="{StaticResource OperationsMenu}" />
                                                        </ControlTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                        </Button.Style>
                                    </Button>
                                </StackPanel>
                                <StackPanel Orientation="Vertical" FlowDirection="LeftToRight" VerticalAlignment="Bottom">
                                    <Button x:Name="CloseButton" Height="20" Width="20" Margin="0,5,0,0" Click="CloseButton_Click">
                                        <Button.Style>
                                            <Style TargetType="{x:Type Button}">
                                                <Setter Property="Template">
                                                    <Setter.Value>
                                                        <ControlTemplate TargetType="{x:Type Button}">
                                                            <Grid>
                                                                <Border BorderThickness="1" Background="#00000000">
                                                                    <Path x:Name="path" Data="M0.28710935,3.5868225 L1.3359375,3.5868225 L3.515625,6.7626038 L3.5390625,6.7626038 L5.7070313,3.5868225 L6.7675781,3.5868225 L4.1074219,7.4481506 L6.890625,11.426666 L5.8183594,11.426666 L3.5214844,8.1044006 L3.4980469,8.1044006 L1.2011719,11.426666 L0.11718747,11.426666 L2.9238281,7.4247131 z" Fill="{StaticResource LightColor}" RenderTransformOrigin=".5,.5" Stretch="Fill" Width="10" Height="10">
                                                                        <Path.RenderTransform>
                                                                            <TransformGroup>
                                                                                <ScaleTransform />
                                                                                <SkewTransform />
                                                                                <RotateTransform />
                                                                                <TranslateTransform />
                                                                            </TransformGroup>
                                                                        </Path.RenderTransform>
                                                                    </Path>
                                                                </Border>
                                                            </Grid>
                                                            <ControlTemplate.Triggers>
                                                                <Trigger Property="IsMouseOver" Value="True">
                                                                    <Setter Property="Fill" TargetName="path" Value="#FFFFAF00"/>
                                                                </Trigger>
                                                            </ControlTemplate.Triggers>
                                                        </ControlTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                        </Button.Style>
                                    </Button>
                                    <ToggleButton x:Name="MaxAndNormalButton" Height="20" Width="20" Margin="0,7" Checked="MaxAndNormalButton_Toggeled" Unchecked="MaxAndNormalButton_Toggeled">
                                        <ToggleButton.Style>
                                            <Style TargetType="{x:Type ToggleButton}">
                                                <Setter Property="Template">
                                                    <Setter.Value>
                                                        <ControlTemplate TargetType="{x:Type ToggleButton}">
                                                            <Grid Background="#00000000">
                                                                <VisualStateManager.VisualStateGroups>
                                                                    <VisualStateGroup x:Name="CommonStates">
                                                                        <VisualState x:Name="Normal" />
                                                                        <VisualState x:Name="MouseOver">
                                                                            <Storyboard>
                                                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle">
                                                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                                                </ColorAnimationUsingKeyFrames>
                                                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle1">
                                                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                                                </ColorAnimationUsingKeyFrames>
                                                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle1">
                                                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                                                </ColorAnimationUsingKeyFrames>
                                                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle2">
                                                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                                                </ColorAnimationUsingKeyFrames>
                                                                                <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle3">
                                                                                    <EasingColorKeyFrame KeyTime="0" Value="#FFB68211" />
                                                                                </ColorAnimationUsingKeyFrames>
                                                                            </Storyboard>
                                                                        </VisualState>
                                                                        <VisualState x:Name="Pressed" />
                                                                        <VisualState x:Name="Disabled" />
                                                                    </VisualStateGroup>
                                                                    <VisualStateGroup x:Name="CheckStates">
                                                                        <VisualState x:Name="Checked">
                                                                            <Storyboard>
                                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="canvas">
                                                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}" />
                                                                                </ObjectAnimationUsingKeyFrames>
                                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="canvas1">
                                                                                    <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}" />
                                                                                </ObjectAnimationUsingKeyFrames>
                                                                            </Storyboard>
                                                                        </VisualState>
                                                                        <VisualState x:Name="Unchecked" />
                                                                        <VisualState x:Name="Indeterminate" />
                                                                    </VisualStateGroup>
                                                                </VisualStateManager.VisualStateGroups>
                                                                <Border BorderThickness="1">
                                                                    <Grid>
                                                                        <Canvas x:Name="canvas" Margin="2.988,2.934,3,3">
                                                                            <Rectangle x:Name="rectangle" Stroke="{StaticResource LightColor}" Width="12" Height="12" Canvas.Left="0.011" Canvas.Top="0.066" />
                                                                            <Rectangle x:Name="rectangle1" Fill="{StaticResource LightColor}" Stroke="{StaticResource LightColor}" Width="12" Height="4" />
                                                                        </Canvas>
                                                                        <Canvas x:Name="canvas1" Margin="2.988,2.934,3,3" Visibility="Collapsed">
                                                                            <Rectangle x:Name="rectangle2" Stroke="{StaticResource LightColor}" Width="8" Height="8" Canvas.Left="1.093" Canvas.Top="0.982" />
                                                                            <Rectangle x:Name="rectangle3" Stroke="{StaticResource LightColor}" Width="8" Height="8" Canvas.Left="2.928" Canvas.Top="2.9" />
                                                                        </Canvas>
                                                                    </Grid>
                                                                </Border>
                                                            </Grid>
                                                        </ControlTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                        </ToggleButton.Style>
                                    </ToggleButton>
                                    <Button x:Name="MinButton" Height="20" Width="20" Margin="0" Click="MinButton_Click">
                                        <Button.Style>
                                            <Style TargetType="{x:Type Button}">
                                                <Setter Property="Template">
                                                    <Setter.Value>
                                                        <ControlTemplate TargetType="{x:Type Button}">
                                                            <Grid Background="#00000000">
                                                                <Border BorderThickness="0" />
                                                                <Rectangle x:Name="rectangle" Fill="{StaticResource LightColor}" Margin="1,5" Height="2" RadiusY=".656" RadiusX=".656" />
                                                            </Grid>
                                                            <ControlTemplate.Triggers>
                                                                <Trigger Property="IsMouseOver" Value="True">
                                                                    <Setter Property="Fill" TargetName="rectangle" Value="#FFB58110"/>
                                                                </Trigger>
                                                            </ControlTemplate.Triggers>
                                                        </ControlTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                        </Button.Style>
                                    </Button>
                                </StackPanel>
                            </Grid>
                        </Border>
                        <Border Grid.Column="2" Grid.Row="3" Margin="5,5,5,5" BorderThickness="0" BorderBrush="{StaticResource LightColor}">
                            <ContentPresenter HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>-->
</ResourceDictionary>